<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="net.maxwoods.services.HelloService" %>
<html>
<%
    WebApplicationContext wac = WebApplicationContextUtils.
            getRequiredWebApplicationContext(this.getServletContext());
    HelloService hs= wac.getBean(HelloService.class);
    out.print(hs.sayHello("OK"));
%>
</html>